package com.celesea.workflow.core.entity;

import com.celesea.framework.entity.BusEntity;
import com.celesea.framework.util.Version;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 流程授权
 * @author JackYuan
 * @create 2017-11-05 16:28
 */
@Version
@Table(name = "wf_node_permission")
public class WorkflowNodePermission extends BusEntity {

    @Column(name = "`wf_id`", columnDefinition = "流程id")
    protected String wfId;

    @Column(name = "`wf_node_id`", columnDefinition = "流程节点Id")
    protected String wfNodeId;

    @Column(name = "`by_apply`", columnDefinition = "发起人")
    protected Byte byApply;

    @Column(name = "`by_user`", columnDefinition = "指定用户")
    protected String byUser;

    @Column(name = "`by_role`", columnDefinition = "指定角色")
    protected String byRole;

    @Column(name = "`by_form_user`", columnDefinition = "表单用户")
    protected String byFormUser;

    @Column(name = "`by_form_dept`", columnDefinition = "表单部门")
    protected String byFormDept;

    @Column(name = "`of_dept`", columnDefinition = "部门")
    protected Byte ofDept;

    @Column(name = "`of_leader`", columnDefinition = "上级")
    protected Byte ofLeader;

    @Column(name = "`of_position`", columnDefinition = "岗位")
    protected String ofPosition;


    public String getWfNodeId() {
        return wfNodeId;
    }

    public void setWfNodeId(String wfNodeId) {
        this.wfNodeId = wfNodeId;
    }

    public Byte getByApply() {
        return byApply;
    }

    public void setByApply(Byte byApply) {
        this.byApply = byApply;
    }

    public String getByUser() {
        return byUser;
    }

    public void setByUser(String byUser) {
        this.byUser = byUser;
    }

    public String getByRole() {
        return byRole;
    }

    public void setByRole(String byRole) {
        this.byRole = byRole;
    }

    public String getByFormUser() {
        return byFormUser;
    }

    public void setByFormUser(String byFormUser) {
        this.byFormUser = byFormUser;
    }

    public String getByFormDept() {
        return byFormDept;
    }

    public void setByFormDept(String byFormDept) {
        this.byFormDept = byFormDept;
    }

    public Byte getOfDept() {
        return ofDept;
    }

    public void setOfDept(Byte ofDept) {
        this.ofDept = ofDept;
    }

    public Byte getOfLeader() {
        return ofLeader;
    }

    public void setOfLeader(Byte ofLeader) {
        this.ofLeader = ofLeader;
    }

    public String getOfPosition() {
        return ofPosition;
    }

    public void setOfPosition(String ofPosition) {
        this.ofPosition = ofPosition;
    }

    public String getWfId() {
        return wfId;
    }

    public void setWfId(String wfId) {
        this.wfId = wfId;
    }
}
